forum

home / developersection / forums / how to change a value of uielement?

How to change a value of UIElement?

Anonymous User 1921 23-Sep-2013

I have a WPF application and Canvas in there. In Canvas I have a Rectangle. How can I change his properties, like Height or Width while program is already processing? Something like:

int index = 0;

var childByIndex = canvas.Children[index];

childByIndex.SetValue(Height, 15);


wpf wpf 
Updated on 23-Sep-2013

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By